//
//  introScreen.cpp
//  CodeLab2013_prep08
//
//  Created by Matthew Parker on 4/1/13.
//
//

#include "introScreen.h"
#include "testApp.h"

introScreen::introScreen():
screen(){
    font.loadFont("verdana.ttf", 24);
    str = "press SPACE to start";
}

void introScreen::setup(){
    
}

void introScreen::update(){

}

void introScreen::draw(){
    ofBackground(225, 125, 125);
    
    ofSetColor(255);
    font.drawString(str, 200, 200);
}

void introScreen::keyPressed(int key){
    
    if(key == 32){
        testApp* app = (testApp*)ofGetAppPtr();
        app->currentScreen = &app->game;
    }
}